package nowCoder;

import java.util.Scanner;

public class HJ96 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String x = sc.next();
        int n = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < x.length(); i++) {
            char c = x.charAt(i);
            if (c >= '0' && c <= '9'){
                if (n == 0) {
                    sb.append("*");
                }
                n++;
                sb.append(c);
                if (i == x.length()-1){
                    sb.append("*");
                }
            }else {
                if (n != 0){
                    sb.append("*");
                    n = 0;
                }
                sb.append(c);
            }
        }
        System.out.println(sb);
    }
}
